package service.tajaApp;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import service.domain.UserVO;

public class TajaAppTestApp {

	public static void main(String[] args) throws Exception{

		ApplicationContext context =
				new ClassPathXmlApplicationContext("/config/tajaAppservice.xml");

		TajaAppService tajaAppService = (TajaAppService)context.getBean("tajaAppService");
		
		UserVO userVO = new UserVO();
		userVO.setUserId("user");
		userVO.setEmail("email");		
//				
//		System.out.println(":: getRankList(SELECT) ? ");
//		System.out.println(tajaAppService.getRankList());
//		System.out.println(":: getEventList(SELECT) ? ");
//		System.out.println(tajaAppService.getEventList());
//		System.out.println(":: getGameInfo(SELECT) ? ");
//		System.out.println(tajaAppService.getGameInfo(userVO));
//		System.out.println(":: addGameInfo(insert) ? ");
//		System.out.println(tajaAppService.addGameInfo("id15", "e004"));
//		System.out.println(":: updateGameInfo(update) ? ");
//		System.out.println(tajaAppService.updateGameInfo("id15", "e004", 6, "crashTime", 15658));
//		System.out.println(":: getUserInfo(select) ? ");
//		System.out.println(tajaAppService.getUserInfo("GARUSTARS"));
//		System.out.println(":: addUserInfo(insert) ? ");
//		System.out.println(tajaAppService.addUserInfo(userVO));
//		System.out.println(":: getBoardList(select) ? ");
//		System.out.println(tajaAppService.getBoardList());		
		System.out.println(":: updateGameInfo(update) ? ");
		System.out.println(tajaAppService.updateGameInfo("gyujin.choi.78", "crashGame", 5000));
		
	} // end of main
	
} // end of class
